/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package cn.edu.just.secondwebapp.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * entity  domain pojo(plain ordernary java object)
 * @author JUST
 */
public class Person {
    private Integer pid;
    private String name;
    private Integer age;
    private Date birthday;
    private BigDecimal salary;

    public Person() {
    }

    
    
    public Person(Integer pid, String name, Integer age, Date birthday, BigDecimal salary) {
        this.pid = pid;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
        this.salary = salary;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Person{" + "pid=" + pid + ", name=" + name + ", age=" + age
                + ", birthday=" + birthday + ", salary=" + salary + '}';
    }
    
}
